/*
 * $Header: $
 */
package net.frankish.moviebank.util;

import java.util.HashMap;
import java.util.Iterator;
import java.util.ResourceBundle;

/**
 *
 * <p>Title: $RCSfile: Translator.java,v $</p>
 * File: Translator.java
 * Project: JCharacter
 * @author Frankish
 * @version $Revision:  $
 */
public class Translator {
	private static ResourceBundle bundle = null;

	public static final String MAIN_MENU_TITLE = "mainmenu.title";
	public static final String MAIN_MENU_EDIT_MOVIE = "mainmenu.bar.edit.movie";
	public static final String MAIN_MENU_EDIT_GENRE = "mainmenu.bar.edit.genre";
	public static final String MAIN_MENU_SEARCH = "mainmenu.bar.edit.search";
	public static final String MAIN_MENU_EDIT = "mainmenu.bar.edit";
	public static final String MAIN_MENU_CLOSE = "mainmenu.close";
	public static final String MAIN_MENU_ABOUT = "mainmenu.about";
	public static final String MAIN_MENU_FILE = "mainmenu.file";
	public static final String MENU_SAVE = "menu.save";

	public static final String STATUS_INFORMATION_NOT_SAVED = "status.not_saved";
	public static final String STATUS_INFORMATION_SAVED = "status.saved";
	public static final String STATUS_READY = "status.ready";
	public static final String STATUS_MISSING_GENRE = "status.missing.genre";
	public static final String STATUS_FILE_NOT_MOVED = "status.file.not_copied_to_images";

	public static final String MOVIE_TITLE = "edit.movie.panelTitle";
	public static final String MOVIE_EDIT_LABEL_TITLE = "edit.movie.title";
	public static final String MOVIE_EDIT_LABEL_PRODUCER = "edit.movie.producer";
	public static final String MOVIE_EDIT_LABEL_RELEASE = "edit.movie.release";
	public static final String MOVIE_EDIT_LABEL_ACTOR = "edit.movie.actor";
	public static final String MOVIE_EDIT_LABEL_GENRE = "edit.movie.genre";
	public static final String MOVIE_EDIT_LABEL_ADD = "edit.movie.add";
	public static final String MOVIE_EDIT_LABEL_REMOVE = "edit.movie.remove";
	public static final String MOVIE_EDIT_LABEL_PICTURE = "edit.movie.picture";
	public static final String MOVIE_EDIT_LABEL_CLEAR_PICTURE = "edit.movie.clear";
	public static final String MOVIE_EDIT_LABEL_DESCRIPTION = "edit.movie.description";
	public static final String MOVIE_EDIT_LABEL_INDICE = "edit.movie.indice";

	public static final String ADD_PICTURE = "edit.picture.add";
	public static final String REMOVE_PICTURE = "edit.picture.remove";

	public static final String DELETE = "edit.delete";
	public static final String NEW = "edit.new";
	public static final String REFRESH = "edit.refresh";
	public static final String SEARCH = "search";
	public static final String SEARCH_DIALOG_TITLE = "search.title";

	public static String get(String key){
		if(bundle == null){
			bundle = ResourceBundle.getBundle("net.frankish.moviebank.resources.moviebank");
		}
		try{
			return bundle.getString(key);
		}catch(Exception ex){
			return key;
		}
	}
}
